﻿using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace OA.Models
{
    public class Menu
    {
        [Key]
        public int Id { get; set; }

        [Required]
        [DisplayName("菜单名")]
        public string Name { get; set; }
        [DefaultValue(0)]
        [DisplayName("排序")]
        public int Sort { get; set; }
        [DisplayName("链接")]
        public string Route { get; set; }

        [InverseProperty("Menu")]
	    public virtual ICollection<MenuItem> MenuItems { get; set; }
    }
}